﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="News.aspx.cs" Inherits="Ajax.Web.News" EnableViewState="false" %>

<%@ Register Src="~/Control/Top.ascx" TagName="top" TagPrefix="AjaxControl" %>
<%@ Register Src="~/Control/Footer.ascx" TagName="footer" TagPrefix="AjaxControl" %>
<%@ Register Src="~/Control/HotNews.ascx" TagName="hotnews" TagPrefix="AjaxControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"><title>新闻资讯 -
	<%=webset.WebName %></title>
	<%=AddMetaInfo(webset.WebKeywords,webset.WebDescription,"") %>
	<link type="text/css" rel="stylesheet" href="css/style.css" />
	<link type="text/css" rel="stylesheet" href="css/pagination.css" />
	<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="js/jquery.pagination.js"></script>
	<script type="text/javascript">
    $(function() {
    //分页参数设置
        $("#Pagination").pagination(<%=pcount %>, {
        callback: pageselectCallback,
        prev_text: "« 上一页",
        next_text: "下一页 »",
        items_per_page:<%=pagesize %>,
        num_display_entries:3,
        current_page:<%=page %>,
        num_edge_entries:2,
        link_to:"?<%=this.CombKeywords(this.classId, this.property) %>page=__id__"
        });
    });
    function pageselectCallback(page_id, jq) {
        //alert(page_id); 回调函数，进一步使用请参阅说明文档
    }
	</script>
</head>
<body id="news">
	<form id="form1" runat="server">
		<!--Head.Start-->
		<AjaxControl:top ID="topControls" runat="server" />
		<!--Head.End-->
		<div class="main">
			<!--left.start-->
			<div class="pleft">
				<dl class="p1">
					<dt><strong>栏目导航</strong></dt>
					<dd>
						<ul class="b1">
							<%=Ajax.Web.UI.Channel.ViewTxtList(0, 1, "News")%>
						</ul>
					</dd>
				</dl>
				<AjaxControl:hotnews ID="HotNews" runat="server" />
			</div>
			<!--left.end-->
			<!--right.start-->
			<div class="pright">
				<div class="prplace">
					<a href="Index.html">主页</a>
					>
					<a href="news.html">新闻资讯</a>
					>
					<%=Ajax.Web.UI.Channel.ViewChannelTitle(this.classId)%>
					> </div>
				<dl class="p2">
					<dt><strong class="fc_f60">
						<%=Ajax.Web.UI.Channel.ViewChannelTitle(this.classId)%></strong></dt>
					<dd>
						<ul class="b3">
							<asp:Repeater ID="rptList" runat="server">
								<ItemTemplate>
									<li>
										<a href="News_View-<%#Eval("Id").ToString()%>.html">
											<%#Eval("Title").ToString()%></a><small>(<%#Convert.ToDateTime(Eval("AddTime")).ToString("yyyy-MM-dd")%>)</small></li>
								</ItemTemplate>
							</asp:Repeater>
						</ul>
					</dd>
				</dl>
				<div class="pagebox">
					<div id="Pagination" class="flickr right"></div>
				</div>
			</div>
			<!--right.end-->
		</div>
		<!--footer Start-->
		<AjaxControl:footer ID="Footer" runat="server" />
		<!--footer End-->
	</form>
</body>
</html>
